﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace LXD.StudnetMangement.Migrations
{
    public partial class SeedStudentTwoTable : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "Students",
                keyColumn: "ID",
                keyValue: 1,
                columns: new[] { "Major", "Name" },
                values: new object[] { "小前锋", "杜兰特" });

            migrationBuilder.InsertData(
                table: "Students",
                columns: new[] { "ID", "ClassName", "Email", "Major", "Name" },
                values: new object[] { 2, 2, "Hardon@NBA.COM", "组织后卫", "哈登" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Students",
                keyColumn: "ID",
                keyValue: 2);

            migrationBuilder.UpdateData(
                table: "Students",
                keyColumn: "ID",
                keyValue: 1,
                columns: new[] { "Major", "Name" },
                values: new object[] { "计算器", "张三" });
        }
    }
}
